# my_project/subpackage/module2.py
from ..module1 import hello  # 相对导入上级包的模块

def greet():
    return f"{hello()} And hi from module2!"